package com.ujs.order.feign;

import com.ujs.servicebase.entity.CourseVoOrder;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zhangshihao
 * @create 2023-09-03 21:05
 */
@FeignClient("service-edu")
@Component
public interface CourseFeignService {
    @ApiOperation("负责订单的远程调用，根据课程id返回信息")
    @GetMapping("/eduservice/front/course/getCourseInfoById/{courseId}")
    CourseVoOrder getCourseInfoById(@PathVariable("courseId") String courseId);
}
